//
//  WebViewController.swift
//  DriverSchoolAPP
//
//  Created by Logel on 2017/5/31.
//  Copyright © 2017年 Logel. All rights reserved.
//

import UIKit

class WebViewController: UIViewController {
    @IBOutlet weak var webView: UIWebView!
    var destUrl = "https://www.hushuang.me/"
    var destTitle = ""
    override func viewDidLoad() {
        super.viewDidLoad()
        self.title = destTitle
        // 1.设置访问资源 - 百度搜索
        let url = URL(string:destUrl);
        // 2.建立网络请求
        let request = URLRequest(url: url!);
        
        // 3.加载网络请求
        webView.loadRequest(request)
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
